<?php

namespace App\Admin\Controllers;

class IndexController extends Controller
{

    public function index()
    {
        return view('admin.index.index');
    }


    public function example()
    {
        return view('admin.index.example');
    }

    public function timeline()
    {
        $items = [
            '2018-07-30'       => '項目立項',
            '2018-09-27'       => '第一筆刊登（NO.1010017）',
            '2018-10-10 10:00' => '項目正式上線',
            '2018-10-10 20:43' => '第一筆交易（NO.1010045）',
            '2018-10-19'       => '第一筆提款（No.1010852）',
            '2018-10-30'       => '首次（點卡）活動',
            '2018-11-16'       => '即時通訊V1.0上線',
            '2018-11-26 12:48' => '第一筆匯豐過數手續費（75元）',
        ];
        $items = collect($items)->sortKeysDesc()->all();

        return view('admin.index.timeline', [
            'items' => $items,
        ]);
    }
}
